<template>
  <div class="page">
    <div class="navbar">
      <image @click="back()" src="https://www.rrjiaoyi.com/app/common/back.png" style="width: 60px;height: 60px;margin-top:14px;left:14px"></image>        
    </div>
    <web class="web" :src="url"></web>
  </div>
</template>
<script>
// import { WxcMinibar, Utils } from 'weex-ui';
// let webview = weex.requireModule('webview');
// const modal = weex.requireModule('modal');
const storage = weex.requireModule('storage')

export default {
  components: {},
  data () {
    return {
      status: '',
      url: 'https://www.lagou.com/',
      loading: false
    }
  },
  beforeCreate() {
    storage.setItem('status', this.$route.query.status)
  },
  created() {
    this.url = decodeURIComponent(this.$route.query.path)
    this.status = this.$route.query.status

  // Utils.env.getPageHeight()
  // weex.config.env.deviceHeight
  },
  methods: {
    back() {
      this.$router.push(`/index?status=${this.status}`)
      // switch(this.status){
      //   case 'a':
      //   this.$router.push('/index')            
      //     break;
      //   case 'b':
      //     console.log('111')
      //     break;
      //   case 'c':
      //     console.log('111')
      //     break;
      // }
    }
  }
}
</script>
<style scoped>
.navbar {
  height: 88px;
  width: 750px;
  background-color: white;
}
.page {
  display: flex;
  flex-direction: column;
}
.web {
  flex: 1; 
  width:750px;
}
</style>